package com.xfyuao.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 封装结果对象，经过springmvc转换成json对象返回给页面
 * */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {

	private Integer code; // 0成功
	private String msg;	// 响应失败状态码
	private Object data;
	private Long count;

	public Result(Integer code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}

}
